<template>
  <div id="order">
      <h1>正在支付</h1>
      <p>商品id:<input type="text" v-model="id"></p>
      <div>
        <span @click="toPage1">核算商品</span>
        <router-link to="/order/page2">收货信息</router-link>
      </div>
      <p>
        <router-view></router-view>
      </p>
  </div>
</template>

<script>
  export default {
    name: "order",
    data () {
      return {
        id: 1
      }
    },
    methods:{
      toPage1(){
        this.$router.push({path:"/order/page1/"+this.id})
      }
    }

  }
</script>

<style scoped>

</style>
